import request from '@/utils/request'

// 用户的增删改查
export function getUserPage(data: any) {
  return request({
    url: '/user/getUserPage',
    method: 'post',
    data
  })
}

export function addUser(data: any) {
  return request({
    url: '/user/addUser',
    method: 'post',
    data
  })
}

export function deleteUser(data: any) {
  return request({
    url: '/user/deleteUser',
    method: 'post',
    data
  })
}

export function updateUser(data: any) {
  return request({
    url: '/user/updateUser',
    method: 'post',
    data
  })
}

// 歌手的增删改查
export function getSingerPage(data: any) {
  return request({
    url: '/singer/getSingerPage',
    method: 'post',
    data
  })
}

export function addSinger(data: any) {
  return request({
    url: '/singer/addSinger',
    method: 'post',
    data
  })
}

export function deleteSinger(data: any) {
  return request({
    url: '/singer/deleteSinger',
    method: 'post',
    data
  })
}

export function updateSinger(data: any) {
  return request({
    url: '/singer/updateSinger',
    method: 'post',
    data
  })
}

// 专辑的增删改查
export function getAlbumPage(data: any) {
  return request({
    url: '/album/getAlbumPage',
    method: 'post',
    data
  })
}

export function addAlbum(data: any) {
  return request({
    url: '/album/addAlbum',
    method: 'post',
    data
  })
}

export function deleteAlbum(data: any) {
  return request({
    url: '/album/deleteAlbum',
    method: 'post',
    data
  })
}

export function updateAlbum(data: any) {
  return request({
    url: '/album/updateAlbum',
    method: 'post',
    data
  })
}
